package cate.game.role.farm.udgpalace.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBUdgPalace;
import cate.game.play.proce.play.PlayPO;
import cate.game.play.vo.PlayVO;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "地宫探险挑战结果返回")
public class UdgPalaceChallengeResp implements MsgOutput {
    @NoteField("bossId")
    public int bossId;
    @NoteField("是否胜利")
    public boolean win;
    @NoteField(value = "剧本")
    public PlayVO play;
    @NoteField("特殊标识")
    public boolean special;

    public UdgPalaceChallengeResp() {

    }

    public UdgPalaceChallengeResp(int bossId, boolean  win, PlayPO play, boolean special) {
        this.bossId = bossId;
        this.win = win;
        this.play = new PlayVO().read(play);
        this.special = special;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBUdgPalace.CHALLENGE_RESP;
    }
}
